<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    /**
    *直接访问
    1.document.getElementById("id属性值");
    2.document.getElementsByClassName("标签名");
    3.document.getElementsByTagName("标签名");
    节点关系
    node.children   node.parentNode


    node.firstChild node.lastChild

    node.firstElementChild  node.lastElementChild
    *
    */

</script>
</html>